<template>
	<view class="nav-title">
		<view class="title-l">全组授权人员</view>
		<view class="title-name">{{$store.state.mainName}}</view>
		<view class="title-r">
			<view class="an" @tap="$emit('onFoldState')">
				<image class="an-image" :src="isShowAn ? '../../static/images/xiaoxi/zhankai2.png':'../../static/images/xiaoxi/zhankai.png'" mode="widthFix"></image>
				<view class="an-text">{{isShowAn ? '展开' : '收起'}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props: {
			isShowAn: {
				type: Boolean,
				required: true
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="less">
.nav-title{
	width: 100%;
	// height: 106rpx;
	height: 6.9vh;
	border-bottom: 2rpx solid #DDDDDD;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	color: #515151;
	font-size: 37rpx;
	font-weight: 400;
	.title-l{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}
	.title-name{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.title-r{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		.an{
			width: 194rpx;
			height: 61rpx;
			background: #4F9AFF;
			border-radius: 56rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			.an-image{
				width: 36rpx;
				height: 20rpx;
				margin-right: 20rpx;
			}
			.an-text{
				color: #FFFFFF;
				font-size: 34rpx;
				font-weight: 400;
			}
		}
	}
}	
</style>
